﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using ESRI.ArcGIS.esriSystem;
using EngineConsoleApplication1;


namespace MyEngineExercise
{
    static class Program
    {
        private static LicenseInitializer m_AOLicenseInitializer = new LicenseInitializer();

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            //ESRI License Initializer generated code.
            m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB,  },
            new esriLicenseExtensionCode[] { 
                esriLicenseExtensionCode.esriLicenseExtensionCode3DAnalyst, 
                esriLicenseExtensionCode.esriLicenseExtensionCodeNetwork, 
                esriLicenseExtensionCode.esriLicenseExtensionCodeSpatialAnalyst, 
                esriLicenseExtensionCode.esriLicenseExtensionCodeSchematics,
                //esriLicenseExtensionCode.
                esriLicenseExtensionCode.esriLicenseExtensionCodeMLE, 
                esriLicenseExtensionCode.esriLicenseExtensionCodeDataInteroperability, 
                esriLicenseExtensionCode.esriLicenseExtensionCodeTracking,
                esriLicenseExtensionCode.esriLicenseExtensionCodeSchematicsSDK});

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());

            m_AOLicenseInitializer.ShutdownApplication();

        }
    }
}